var form;
var table;
var $;
var laydate;
layui.use(['laydate','form','table'],function(){
    form = layui.form;
    table=layui.table;
    $=layui.$;
    laydate=layui.laydate;

    laydate.render({
        elem: '#paymentTime' //指定元素
    });

});



$('#confirm').on('click',function(){
    var paymentTime=$('input[name=paymentTime]').val();
    var nickname=$('input[name=nickname]').val();
    var orderNo=$('input[name=orderNo]').val();
    var productName=$('input[name=productName]').val();
    var orderPaymentChannel=$('#orderPaymentChannel option:selected').val();
    var orderSource=$('#orderSource option:selected').val();

    parent.$("input[name='paymentTimes']").val(paymentTime);
    parent.$("input[name='nicknames']").val(nickname);
    parent.$("input[name='orderNos']").val(orderNo);
    parent.$("input[name='orderPaymentChannels']").val(orderPaymentChannel);
    parent.$("input[name='orderSources']").val(orderSource);
    parent.$("input[name='productNames']").val(productName);

    parent.retrieve();

    var layer_1=parent.layer_1;
    layer_1.close(layer_1.index);
})
//重置
$('#reset').on('click',function(){
    $("input").val("");
    $(this).find("option:selected").removeAttr("selected");
})